<?php

use Biz\service\Category as sCategory;
use Doraemon\tools\ActionLog;
/**
 * @deprecated
 */
class AllCategoryAction extends ActionPlugin
{

    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $result = sCategory::getAllCategoryList();
        $result = $result ? $result : (object)[];
        ActionLog::log($this->uid, [], ActionLog::BIZ_ALL_CATEGORY);
        $this->setSuccess($result);
    }
}